package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购对象 c_main
 * 
 * @author GGJ
 * @date 2024-05-13
 */
public class CMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购批次号 */
    private Long id;

    /** 仓库 */
    @Excel(name = "仓库")
    private String warehouse;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purtime;

    /** 采购人 */
    @Excel(name = "采购人")
    private String buyer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setPurtime(Date purtime) 
    {
        this.purtime = purtime;
    }

    public Date getPurtime() 
    {
        return purtime;
    }
    public void setBuyer(String buyer) 
    {
        this.buyer = buyer;
    }

    public String getBuyer() 
    {
        return buyer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehouse", getWarehouse())
            .append("name", getName())
            .append("supplier", getSupplier())
            .append("purtime", getPurtime())
            .append("buyer", getBuyer())
            .append("remark", getRemark())
            .toString();
    }
}
